function getCookie(name) {
    var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
    return r ? r[1] : undefined;
}

$(function () {
    $(".pass_info").submit(function (e) {
        e.preventDefault();
        // 修改密码
        $.ajax({
            type : "POST",
            url : "/user/pass_info",
            data : new FormData($('.pass_info')[0]),
            async: false,
            cache: false,
            contentType: false,
            processData: false,
            success : function(code) {
                alert(code)
            }
         });
    })
})